package common.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import common.model.enums.UserProductionTypeEnum;
import common.model.po.base.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 米泽鹏
 * @since 2023-09-26 下午 10:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_user_production")
@ApiModel(value = "GUserProduction对象", description = "")
public class GUserProduction extends BasePo<GUserProduction> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "类型")
	private UserProductionTypeEnum type;

	@ApiModelProperty(value = "产线名称")
	private String productionName;

	@ApiModelProperty(value = "物品id")
	private Long itemId;

	@ApiModelProperty(value = "需求数量（个/min）")
	private BigDecimal quantityPerMinute;

	@ApiModelProperty(value = "产线数据")
	@TableField("data")
	private String data;

	@Override
	public Serializable pkVal() {
		return super.getId();
	}

}
